 var id = getvl("id");
 var xiugai=getvl("xiugai");  
 $(function(){
 	 if(id!=""&& xiugai!=""){
 	 	$("#anniu").html("");
 	 	$(".p_dizhi").html("修改密码");
 	 	$("#miamss").text("修改支付密码");
 	 	var xiugais= '<a href="#" onclick="xiugaisss()">'+
        '<input type="button" class="p_button"  value="请输入旧密码">'+
       '</a>';
 	 	$("#anniu").append(xiugais);
 	 }else if(id!=""){
 	 		$("#anniu").html("");
 	 	var xiugais= '<a href="#" onclick="baochun()">'+
        '<input type="button" class="p_button"  value="设置密码">'+
       '</a>';
 	 	$("#anniu").append(xiugais);
 	 }
 	
 });
 
  function xiayibu(pwd){
  	if(uuuuid!=""){
  	 $.ajax({
		url: urlcore + "/api/user/paymentpassword?id="+uuuuid,
		type: "post",
		contentType: "application/json;charset=utf-8",
		data: JSON.stringify({
			paypwd:pwd
		}),
		dataType: "json",
		success: function(data) {
			if(data.success == true) {
			     alert("设置成功!!!");
				window.location.href = "12.7.3shezhi_mima_queren.html?id="+id;
            }
		},
		error: function() {
			alert("error");
		}
	});
	}
    	
}

